import request from '../utils/request'

export const getUserInfoAPI = () => {
  return request.get('/userInfo')
}

export const updateUserInfo = ({ nickName }) => {
  return request.put('/userInfo', { nickName })
}

